package com.campusbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 轮播图表
 * </p>
 *
 * @author yezi
 * @since 2025-07-29
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@TableName("carousel_images")
@Schema(name = "CarouselImage", description = "轮播图表")
public class CarouselImage implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "轮播图位置：1-6")
    private Integer position;

    @Schema(description = "图片URL")
    private String imageUrl;

    @Schema(description = "图片名称")
    private String imageName;

    @Schema(description = "是否启用：1-启用，0-禁用")
    private Boolean isActive;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
